package com.spider.task;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.text.SimpleDateFormat;
import java.util.Date;

public class PrintTimeTask implements BaseTask {
    @Override
    public void execute(JobExecutionContext jobExecutionContext)
            throws JobExecutionException {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        System.out.println("执行时间:"+sdf.format(new Date()));

    }
}
